package com.wwwarehouse.taskcenter.bean.job_point;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Jackie on 2017/10/30.
 * 查询组合类目维度信息请求实体
 */

public class CategoryInfoResponseBean implements Parcelable {

    /**
     * metaCategoryUkid : 12314141004666
     * categoryUkid : 2208470000000300166
     * itemUkid : 123456000444001
     * categoryName : 作业点-生产物类目1
     */
    private String metaCategoryUkid;
    private String categoryUkid;
    private String itemUkid;
    private String categoryName;
    private boolean isSelect;

    public String getMetaCategoryUkid() {
        return metaCategoryUkid;
    }

    public void setMetaCategoryUkid(String metaCategoryUkid) {
        this.metaCategoryUkid = metaCategoryUkid;
    }

    public String getCategoryUkid() {
        return categoryUkid;
    }

    public void setCategoryUkid(String categoryUkid) {
        this.categoryUkid = categoryUkid;
    }

    public String getItemUkid() {
        return itemUkid;
    }

    public void setItemUkid(String itemUkid) {
        this.itemUkid = itemUkid;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.metaCategoryUkid);
        dest.writeString(this.categoryUkid);
        dest.writeString(this.itemUkid);
        dest.writeString(this.categoryName);
        dest.writeByte(this.isSelect ? (byte) 1 : (byte) 0);
    }

    public CategoryInfoResponseBean() {
    }

    protected CategoryInfoResponseBean(Parcel in) {
        this.metaCategoryUkid = in.readString();
        this.categoryUkid = in.readString();
        this.itemUkid = in.readString();
        this.categoryName = in.readString();
        this.isSelect = in.readByte() != 0;
    }

    public static final Creator<CategoryInfoResponseBean> CREATOR = new Creator<CategoryInfoResponseBean>() {
        @Override
        public CategoryInfoResponseBean createFromParcel(Parcel source) {
            return new CategoryInfoResponseBean(source);
        }

        @Override
        public CategoryInfoResponseBean[] newArray(int size) {
            return new CategoryInfoResponseBean[size];
        }
    };
}
